#pragma once
#include <QString>

struct PhoneItem
{
	QString name;
	int name_orient;
	int price;
	int id;
};
struct PhoneItem2
{
	char name[100];
	int name_orient;
	int price;
	int id;
};

struct structBase
{
	char name[50];
	int name_orient;
	char sizes[50];
	bool radio;
	bool card;
	bool net;
	bool haveprice;
	char other[100];
	bool first;
	int price;
	double camera;
	int id;
};

class Telephone
{
public:
	Telephone(void);
	~Telephone(void);

	QString name;
	int name_orient;
	QString sizes;
	bool radio;
	bool card;
	bool net;
	bool haveprice;
	QString other;
	bool first;
	int price;
	double camera;
	int id;

	bool operator == (const Telephone &other);
	bool operator > (const Telephone &other);
	//friend bool operator>(PhoneItem next1,PhoneItem next2);
	Telephone( QString Name, int Name_orient, QString Sizes, bool Radio, bool Card, bool Net, QString Other, bool First, int Price, double Camera )
	{
		this->name = Name;
		this->name_orient = Name_orient;
		this->sizes = Sizes;
		this->radio = Radio;
		this->card = Card;
		this->net = Net;
		this->other = Other;
		this->first = First;		
		this->price = Price;
		this->camera = Camera;

	}

	PhoneItem toItem();
private:
};
